package com.example.emailcraft.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.emailcraft.entity.Roles;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author scj
 * @since 2025-01-21
 */
@Mapper
public interface RolesMapper extends BaseMapper<Roles> {
    @Select("SELECT id FROM roles WHERE role_code = #{roleCode}")
    Integer findIdByRoleCode(String roleCode);
}
